import Vue from 'vue'
import Router from 'vue-router'
import index from '@/modules/index'
import intelligentMatch from '@/modules/intelligentMatch'
import financingList from '@/modules/financingList'
import Login from '@/modules/Login'
import financeDetail from '@/modules/financeDetail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      redirect:'login',
      children:[
        {
          path: '/intelligentMatch',
          name: 'intelligentMatch',
          component: intelligentMatch
        },
        {
          path: '/financingList',
          name: 'financingList',
          component: financingList
        },
        {
          path: '/financeDetail',
          name: 'financeDetail',
          component: financeDetail
        },
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: Login,
    }
  ]
})
